package BZimmerman.AndroidWars;

import android.graphics.PointF;
//Survivors
//Infected
//Others
//Forgotten
//Elite
public class castleActions {
	private int graphic;
	private int graphicCounter;
	private int castleID;
	private PointF Location;
	castleActions(PointF Location, int castleID){
		graphicCounter = 0;
		graphic = 0;
		this.Location = Location;
		this.castleID = castleID;
	}
	public int returnGraphicAnimation(){
		graphicCounter++;
		if(graphicCounter == 10){
			graphicCounter = 0;
			graphic++;
		}
		if(graphic > 4){
			graphic = 0;
		}
		return graphic;
	}
	public void setCastle(int castleID){
		this.castleID = castleID;
	}
	public int getCastleID(){
		return castleID;
	}
}
